<?php

namespace App\Http\Controllers\admin;

use App\Dao\RechargeDao;
use App\Services\Code;

class RechargeOrderController extends BaseController
{
    public function recharge(){
        if(getIsHasPage()){
            return  Code::message('',200,RechargeDao::pager(request()->all()));
        }
        return view('admin.recharge.recharge');
    }

    public function audit(){
        if(isPost()){
            $params = request()->all();
            RechargeDao::audit($params);
            return  Code::message('',200);
        }
        return view('admin.recharge.audit',[
            'u_recharge_id'=>$_GET['u_recharge_id']
        ]);
    }
}
